<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    var Utils = {

    }
    Utils.myTrim  =  function (s) {
        var reg = /^\s*(.*?)\s*$/;
        var r = s.replace(reg, "$1");
        return r;
    }
    var s = '   asasdas   ';
    var r = Utils.myTrim(s);        //
    console.log(r);
//    var ran = Math.random();
//    var min = Math.min(1,33.-1);

</script>
</body>
</html>